package com.jianshuai.fallback;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.jianshuai.domain.User;
import jdk.nashorn.internal.ir.Block;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderFallback {

    public static User fallback1(@PathVariable("userId") Long userId, BlockException e){
        e.printStackTrace();
        return new User(-1L,"服务熔断,请稍后重试!!!");
    }
}
